package com.dhemery.mack.model.tests;

import static org.junit.Assert.*;

import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.model.IWorkbenchAdapter;
import org.junit.Test;

import com.dhemery.mack.model.Session;


public class SessionTests {
	
	@Test
	public void defaultSessionHasDefaultName() {
		assertEquals(Session.DEFAULT_SESSION_NAME, new Session().getName());
	}

	@Test
	public void adapterForIEditorInputInterfaceIsNull() {
		assertNull(new Session().getAdapter(IEditorInput.class));
	}

	@Test
	public void adapterForIWorkbenchAdapterInterfaceIsNull() {
		assertNull(new Session().getAdapter(IWorkbenchAdapter.class));
	}
}
